﻿<%@ Page Language="c#" CodeBehind="report_total.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master"
    AutoEventWireup="false" Inherits="ud_gSDMS.project.report_total" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">

<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
    <mp:CornerRounderTop id="ctop1" runat="server" />
    <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper gSDMS">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true" UseLowerCaseArtisteerClasses="true"/>
        <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
        <div class="modulecontent">
            <fieldset>
            <div class="div_title">
                    <a href="/gSDMSModule/project/report_total.aspx?pageid=8">Project</a>
                    &nbsp;>&nbsp;
                    <a href="">Report total</a>
                </div>
                <br />
                <div class="div_Edit div_search">
                    <table cellpadding='3' cellspacing='0' border='0' class="tb_search" >
                        <tr>
                            <td class="title">From date:</td>
                            <td class="input"> 
                                <telerik:RadDatePicker ID="datTimeReport_Date_from" runat="server" 
                                        DateInput-DateFormat="dd/MM/yyyy" DateInput-CssClass="txtInput" DateInput-MaxLength="10" Width="110px" Height="18px"
                                        DatePopupButton-Width="23px" DatePopupButton-Height="23px" 
                                >
                                    <Calendar>
                                        <SpecialDays>
                                            <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
                                        </SpecialDays>
                                    </Calendar>
                                </telerik:RadDatePicker>
                    
                            </td>
                            
                            <td class="title">To date:</td>
                            <td class="input"> 
                                <telerik:RadDatePicker ID="datTimeReport_Date_to" runat="server" 
                                        DateInput-DateFormat="dd/MM/yyyy" DateInput-CssClass="txtInput" DateInput-MaxLength="10" Width="110px" Height="18px"
                                        DatePopupButton-Width="23px" DatePopupButton-Height="23px"
                                >
                                    <Calendar>
                                        <SpecialDays>
                                            <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
                                        </SpecialDays>
                                    </Calendar>
                                </telerik:RadDatePicker>
                   
                            </td>
                         </tr>
                          <tr>
                            <td class="title">Project Leader:</td>
                            <td class="input">
                                <telerik:RadComboBox ID="cboProjectLeader" AllowCustomText="true" runat="server" CssClass="cbo_rad" Width="100px" EmptyMessage="" Filter="Contains"></telerik:RadComboBox>
                            </td>
                            <td class="title">Project Name:</td>
                            <td class="input">
                                <telerik:RadComboBox ID="cboProjectName" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="300px" EmptyMessage="" Filter="Contains">
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                         <tr>                           
                            <td class="title"></td>
                            <td style = "padding-left :2px">
                                <asp:ImageButton ID='btnReportSearch' runat="server" ImageAlign="Left" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/search.png" Width="82px" Height="23px" />
                            </td>
                        </tr>
                    </table>
                </div>
                <br />
                <div class="gSDMS_Grid">
                <%--<asp:GridView runat="server" ID="grdTimeSheet"></asp:GridView>--%>
                
                   <asp:GridView ID="grdReportTotal" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
                        AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" PageSize="10" PagerSettings-Position="Bottom" PagerStyle-HorizontalAlign="Right"
                        CssClass="css_grid" DataKeyNames="Project_ID"
                        >                        
                        <AlternatingRowStyle CssClass='AlternatingRowStyle' />
                        <EditRowStyle CssClass='EditRowStyle' />
                        <FooterStyle CssClass='FooterStyle' />
                        <HeaderStyle CssClass='HeaderStyle' />
                        <PagerStyle CssClass='PagerStyle' HorizontalAlign="Right" />
                        <RowStyle CssClass='RowStyle' />
                        <SelectedRowStyle CssClass='SelectedRowStyle' />
                   
                        <Columns >
                            <asp:TemplateField HeaderText="STT" ItemStyle-CssClass="stt">
                                <ItemTemplate><%# grdReportTotal.PageIndex * grdReportTotal.PageSize + grdReportTotal.Rows.Count + 1%></ItemTemplate></asp:TemplateField>
                             
                             <asp:TemplateField HeaderText="Project code" ItemStyle-CssClass='txtProjectCode' SortExpression="Project_code">
                                <ItemTemplate><a class="edit" href='<%# "/gSDMSModule/project/project_detail.aspx?pageid=8&id=" + Eval("Project_ID") %>'><%#Eval("Project_Code")%></a></ItemTemplate></asp:TemplateField>                        
                             
                             <asp:TemplateField HeaderText="Project name" ItemStyle-CssClass='txt' SortExpression="Project_name">
                                <ItemTemplate><%# Eval("Project_name")%></ItemTemplate></asp:TemplateField>         

                            <asp:TemplateField HeaderText="Project leader" ItemStyle-CssClass="txtleader" SortExpression="Project_leader" ItemStyle-HorizontalAlign="Left">
                                <ItemTemplate><%#Eval("Project_leader")%></ItemTemplate></asp:TemplateField>
                            
                             <asp:TemplateField HeaderText="Start date" ItemStyle-CssClass="txtdate" SortExpression='Start_date' ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate><%#Eval("Start_date", "{0:dd/MM/yyyy}")%></ItemTemplate></asp:TemplateField>

                             <asp:TemplateField HeaderText="End date" ItemStyle-CssClass="txtdate" SortExpression='End_date' ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate><%#Eval("End_date", "{0:dd/MM/yyyy}")%></ItemTemplate></asp:TemplateField>

                             <asp:TemplateField HeaderText="Time late" ItemStyle-CssClass="txtnumlate" SortExpression="Time_late" ItemStyle-HorizontalAlign="Right">
                                <ItemTemplate><%#Eval("Time_late")%></ItemTemplate>
                               <%--<ItemTemplate>
                                <asp:ImageButton ID="btnAccept" CssClass="delete" runat="server" ToolTip="This is project late..." ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/accept.png" Visible="false"/>
                               </ItemTemplate>--%>
                             </asp:TemplateField>
                                                        
                            <asp:TemplateField HeaderText="Resource estimate" ItemStyle-CssClass="txtResource" SortExpression="Resource_estimate" ItemStyle-HorizontalAlign="Right">
                                <ItemTemplate><%#Eval("Resource_estimate")%></ItemTemplate></asp:TemplateField>
                                                     
                            <asp:TemplateField HeaderText="Resource actual" ItemStyle-CssClass="txtResource" SortExpression="Resource_actual" ItemStyle-HorizontalAlign="Right">
                                <ItemTemplate><%#Eval("Resource_actual")%></ItemTemplate></asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="Resource over" ItemStyle-CssClass="txtResource" SortExpression="Resource_over" ItemStyle-HorizontalAlign="Right">
                                <ItemTemplate><%#Eval("Resource_over")%></ItemTemplate></asp:TemplateField>
                        </Columns>

                        <EmptyDataTemplate>
                            <div class="div_dataEmpty">Data not found!</div>
                        </EmptyDataTemplate>
                        
                    </asp:GridView>
                  <div class="div_Edit">
                    <table style="padding-left: 367px;"> 
                       <tr>
                            <td colspan="2" align="">
                                  <div class="div_AddNew div_Edit">
                                   <asp:Button id="btnExportExcel" runat="server" CssClass="btn_01" Text="Export" runat="server" Visible="false"/>
                                 </div>
                            </td>
                        </tr>
                  </table>
                  </div>    
                </div>
                 <%--Dung de Xuat du lieu ra excel--%>
                    <div style="display:none">                    
                    <telerik:RadGrid ID="hiddenGrid" GridLines="Both" runat="server">
                            <ExportSettings>
                                <Excel Format="Html" />
                            </ExportSettings>
                        </telerik:RadGrid>
                    </div>
                <%---------------------ket thuc---------------%>
    <%--      </ContentTemplate>
            </asp:UpdatePanel>--%>
               
            </fieldset>
         </div>
        </portal:mojoPanel>
        <div class="cleared"></div>
    </asp:Panel>
    <mp:CornerRounderBottom id="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
